import request from '@/utils/request'

export function getBanner() {
    return request({
      url: `/banner`,
      method: 'get'
    })
  }

  
export function getHot() {
  return request({
    //url: `/top/playlist/highquality`,
    url: `/top/playlist`,
    method: 'get'
  })
}
  
export function getNewAlbum() {
  return request({
    url: `/album/new?area=ALL&limit=10`,
    method: 'get'
  })
}

export function getTopList() {
  return request({
    url: `/toplist`,
    method: 'get'
  })
}

export function getArtists() {
  return request({
    url: `/top/artists?limit=5`,
    method: 'get'
  })
}

export function getDj() {
  return request({
    url: `/dj/toplist/popular?limit=5`,
    method: 'get'
  })
}

export function getListDetail(id) {
  return request({
    url: `/top/list?id=`+id,
    method: 'get',
  })
}
export function getAudio() {
  return request({
    url: `http://tts.baidu.com/text2audio?lan=zh&ie=UTF-8&spd=4&text=郭睿`,
    method: 'get',
  })
}
